.global main

.section .rodata
.LC0:
	.string "%d\n"

.text
main:
	pushq %rbp
	movq %rsp, %rbp
	
	subq $8, %rsp

	movq $1, -4(%rbp)
	movq $1, -8(%rbp)
	jmp .Lmain_400

.Lmain_500:
	cmpl $10, -8(%rbp)
	jl .Lmain_490
	jmp .Lmain_20

.Lmain_490:
	movl -8(%rbp), %eax
	movl $3, %ebx
	xorq %rdx, %rdx
	idivl %ebx
	cmpl $1, %ebx
	jne .Lmain_480
	
	addl $3, -8(%rbp)
	jmp .Lmain_400

.Lmain_480:
	addl $1, -4(%rbp)

.Lmain_400:
	cmpl $100, -4(%rbp)
	jle .Lmain_500

.Lmain_20:
	movl -4(%rbp), %esi
	leaq .LC0(%rip), %rdi
	movl $0, %eax
	call printf

	movl $0, %eax
	leave
	ret
